package com.ruoyi.job.service;


import com.ruoyi.job.domain.YqgBarBills;
import com.ruoyi.job.domain.YqgConsumptionDetails;
import com.ruoyi.job.domain.ZxyConsumptionDetails;
import com.ruoyi.job.mapper.YqgBarBillsMapper;
import com.ruoyi.job.mapper.YqgConsumptionDetailsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 消费详细Service业务层处理
 * 
 * @author dr
 * @date 2023-04-17
 */
@Service
public class YqgConsumptionDetailsServiceImpl implements IYqgConsumptionDetailsService 
{
    @Autowired
    private YqgConsumptionDetailsMapper yqgConsumptionDetailsMapper;
    @Autowired
    private YqgBarBillsMapper yqgBarBillsMapper;
    /**
     * 查询消费详细
     * 
     * @param ID 消费详细主键
     * @return 消费详细
     */
    @Override
    public YqgConsumptionDetails selectYqgConsumptionDetailsByID(Long ID)
    {
        return yqgConsumptionDetailsMapper.selectYqgConsumptionDetailsByID(ID);
    }

    /**
     * 查询消费详细列表
     * 
     * @param yqgConsumptionDetails 消费详细
     * @return 消费详细
     */
    @Override
    public List<YqgConsumptionDetails> selectYqgConsumptionDetailsList(YqgConsumptionDetails yqgConsumptionDetails)
    {
        return yqgConsumptionDetailsMapper.selectYqgConsumptionDetailsList(yqgConsumptionDetails);
    }
    @Override
    public List<YqgConsumptionDetails> selectYqgConsumptionDetailsListdangri(YqgConsumptionDetails yqgConsumptionDetails)
    {
        return yqgConsumptionDetailsMapper.selectYqgConsumptionDetailsListdangri(yqgConsumptionDetails);
    }

    @Override
    public List<YqgConsumptionDetails> YzxselectYqgConsumptionDetailsList(YqgConsumptionDetails yqgConsumptionDetails)
    {
        return yqgConsumptionDetailsMapper.YzxselectYqgConsumptionDetailsList(yqgConsumptionDetails);
    }
    @Override
    public List<YqgConsumptionDetails> selectYqgConsumptionDetailsListbyopentime(ZxyConsumptionDetails zxyConsumptionDetails)
    {
        return yqgConsumptionDetailsMapper.selectYqgConsumptionDetailsListbyopentime(zxyConsumptionDetails);
    }
    @Override
    public List<YqgConsumptionDetails> ShaoselectYqgConsumptionDetailsList(YqgConsumptionDetails yqgConsumptionDetails)
    {
        return yqgConsumptionDetailsMapper.ShaoselectYqgConsumptionDetailsList(yqgConsumptionDetails);
    }
    /**
     * 新增消费详细
     * 
     * @param yqgConsumptionDetails 消费详细
     * @return 结果
     */
    @Override
    public int insertYqgConsumptionDetails(YqgConsumptionDetails yqgConsumptionDetails)
    {
        return yqgConsumptionDetailsMapper.insertYqgConsumptionDetails(yqgConsumptionDetails);
    }

    /**
     * 修改消费详细
     * 
     * @param yqgConsumptionDetails 消费详细
     * @return 结果
     */
    @Override
    public int updateYqgConsumptionDetails(YqgConsumptionDetails yqgConsumptionDetails)
    {
        return yqgConsumptionDetailsMapper.updateYqgConsumptionDetails(yqgConsumptionDetails);
    }

    /**
     * 批量删除消费详细
     * 
     * @param IDs 需要删除的消费详细主键
     * @return 结果
     */
    @Override
    public int deleteYqgConsumptionDetailsByIDs(Long[] IDs)
    {
        return yqgConsumptionDetailsMapper.deleteYqgConsumptionDetailsByIDs(IDs);
    }

    /**
     * 删除消费详细信息
     * 
     * @param ID 消费详细主键
     * @return 结果
     */
    @Override
    public int deleteYqgConsumptionDetailsByID(Long ID)
    {
        return yqgConsumptionDetailsMapper.deleteYqgConsumptionDetailsByID(ID);
    }

    /**
     * 通过手牌号查消费信息
     *
     * @param handBrand 手牌号
     * @return 结果
     */
    @Override
    public List<YqgConsumptionDetails> selectYqgConsumptionBrand(String handBrand) {
        return yqgConsumptionDetailsMapper.selectYqgConsumptionBrand(handBrand);
    }

    /**
     * 通过手牌号查吧台信息
     *
     * @param handBrand 手牌号
     * @return 结果
     */
    @Override
    public List<YqgBarBills> selectYqgBarBillsBrand(String handBrand) {
        return yqgBarBillsMapper.selectYqgBarBillsBrand(handBrand);
    }
}
